projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9dfe51
)
Run erc-kill-channel-hook always on exit
author
Fran Litterio
<flitterio@gmail.com>
Sun, 27 Dec 2015 07:56:45 +0000
(08:56 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 27 Dec 2015 07:56:45 +0000
(08:56 +0100)
* lisp/erc/erc.el (erc-kill-buffer-function): Run erc-kill-channel-hook
when erc-kill-queries-on-quit is set (bug#21187).
lisp/erc/erc.el
patch
|
blob
|
history
diff --git
a/lisp/erc/erc.el
b/lisp/erc/erc.el
index a66338dff02d4d1627a849efd78e696a44e90166..70e37348b6a9055982be18b92629de9cbc8f16e4 100644
(file)
--- a/
lisp/erc/erc.el
+++ b/
lisp/erc/erc.el
@@
-6702,7
+6702,7
@@
or `erc-kill-buffer-hook' if any other buffer."
(cond
((eq (erc-server-buffer) (current-buffer))
(run-hooks 'erc-kill-server-hook))
- ((erc-channel-p (
erc-default-target
))
+ ((erc-channel-p (
or (erc-default-target) (buffer-name)
))
(run-hooks 'erc-kill-channel-hook))
(t
(run-hooks 'erc-kill-buffer-hook)))))